<!--<div class="btn-group">
    <a href="<?php /*echo site_urlc('company/create')*/?>" class='btn btn-primary'> <i class="fa fa-plus"></i> <?php /*echo $title; */?> </a>
</div>-->

<?php
if(LOCALHOST) {
    $ref = isset($_GET['ref']) ? $_GET['ref'] : GLOBAL_URL.substr($_SERVER['PHP_SELF'],1).'?'.$_SERVER['QUERY_STRING'];
} else {
    $ref = isset($_GET['ref']) ? $_GET['ref'] : ADMINER_URL.'index.php'.$_SERVER['PHP_SELF'].'?'.$_SERVER['QUERY_STRING'];
}
include_once 'inc_ui_limit.php'; ?>
<form class="form-inline" action="<?php echo site_urlc($this->class.'/index/'.$this->cid); ?>" method="GET">
    <span>所在行业:</span>
    <select name="industry">
        <option value="" <?php echo !$this->input->get('industry') ? 'selected':'';  ?> >请选择</option>
        <?php foreach($industry as $row) {?>
            <option value="<?php echo $row['id']?>" <?php echo $this->input->get('industry') == $row['id'] ? 'selected' : '';  ?>><?php echo $row['title']?></option>
        <?php }?>

    </select>
    <span>价值梳理:</span>
    <select name="is_combing">
        <option value="3" <?php echo $this->input->get('is_combing') == 3 ? 'selected' : '';  ?> >全部</option>
        <option value="1" <?php echo $this->input->get('is_combing') == 1 ? 'selected' : '';  ?>>是</option>
        <option value="2" <?php echo $this->input->get('is_combing') == 0 ? 'selected' : '';  ?>>否</option>
    </select>
    <span>处理状态:</span>
    <select name="status">
        <option value="3" <?php echo $this->input->get('status') == 3 ? 'selected' : '';  ?> >全部</option>
        <option value="1" <?php echo $this->input->get('status') == 1 ? 'selected' : '';  ?>>已处理</option>
        <option value="2" <?php echo $this->input->get('status') == 0 ? 'selected' : '';  ?>>未处理</option>
    </select>
    <span>企业全称:</span>
    <input type="text" class="" name="name"
           value="<?php echo $this->input->get('name') ?>">
    <input class="btn" type="submit" value="检索"><span>未进行价格梳理数<?php echo $total?></span>
</form>
<p></p>
<div class="boxed">
    <div class="boxed-inner seamless">

<table class="table table-striped table-hover select-list">
    <thead>
        <tr>
            <th class="width-small"><input id='selectbox-all' type="checkbox" > </th>
            <th>id</th>
            <th>公司logo</th>
            <th>企业代表</th>
            <th>公司全称</th>
            <th>公司简称</th>
            <th>公司简拼</th>
            <th>股票代码</th>
            <th>浏览数</th>
            <th>所在行业</th>
            <th>是否价值梳理</th>
            <th>是否处理</th>
            <th>更新时间</th>
            <th class="span1">操作</th>
        </tr>
    </thead>
    <tbody class="sort-list">
        <?php foreach ($list as $v):?>
        <tr data-id="<?php echo $v['id'] ?>" data-sort="<?php echo $v['sort_id'] ?>">
            <td><input class="select-it" type="checkbox" value="<?php echo $v['id']; ?>" ></td>
            <td><?php echo $v['id']?></td>
            <td>
                <?php if ($v['thumb']): ?>
                <a class="fancybox-img" href="<?php echo UPLOAD_URL. str_replace('thumbnail/', '', $v['thumb']); ?>" title="<?php echo $v['name'] ?>">
                    <img src="<?php echo UPLOAD_URL.$v['thumb'] ?>" alt="<?php echo $v['name'];?>">
                </a>
                <?php endif ?>
             </td>
            <td> <?php echo $v['uid'] ? get_account_name($v['uid']) : '' ?></td>
            <td> <?php echo $v['name'] ?></td>
            <td> <?php echo $v['short'] ?></td>
            <td> <?php echo $v['initials'] ? $v['initials'] : pinyin($v['name'],'UTF8',true)?></td>
            <td> <?php echo $v['stock_code'] ? $v['stock_code'] : '' ?></td>
            <td> <?php echo $v['scan'] ?></td>
            <td> <?php echo $v['industry'] ? get_ctype_titles($v['industry']) : '' ?></td>
            <td> <?php echo $v['is_combing'] ? '是' : '否' ?></td>
            <td> <?php echo $v['status'] ? '是' : '否' ?></td>
            <td> <?php echo  date("Y/m/d H:i:s",$v['timeline']); ?> </td>
            <td>
                <div class="btn-group">
                    <?php if($v['is_combing'] && !$v['status']) {?>
                    <a class='btn btn-small' style="background-color: #0000cc;color: #ffffff;" href=" <?php echo site_urlc( $this->router->class.'/status/'.$v['id']).'&ref='.base64_encode($ref) ?> ">已处理</a>
                    <?php }?>
                    <a class='btn btn-small' style="background-color: #0000cc;color: #ffffff;" href=" <?php echo site_urlc( $this->router->class.'/edit/'.$v['id']).'&ref='.base64_encode($ref) ?> ">详情</a>
                </div>
            </td>
        </tr>
        <?php endforeach;?>
    </tbody>
</table>

    </div>
</div>

<?php echo $pages; ?>

